package com.carrentalplatform.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Knife4j接口文档配置
 */
@Configuration
public class Knife4jConfig {
    
    @Bean
    public OpenAPI createRestApi() {
        return new OpenAPI()
                .info(new Info()
                        .title("租车产业链服务共享平台接口文档")
                        .description("租车产业链服务共享平台API文档")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("admin")
                                .email("admin@carrentalplatform.com")));
    
    }

}